package hello;

public class Test8 {
	public static void main(String[] args) {
		int i,a,b,c,s;
		for(i=100;i<=999;i++){
			a=i%10;
			b=i/10%10;
			c=i/100;
			s=立方(a,3)+立方(b,3)+立方(c,3);
			if(i==s) System.out.println(i);
		}
	}

	public static int 立方(int x, int y ) {
		int s=1,i;
		for(i=1;i<=y;i++){
			s*=x;
		}
		return s;
		
	}
}
